<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<html>
<head>

    <title>Viewing</title>

    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    <link rel="stylesheet" href="css/common.css"/>

</head>

<body>
<f:view>
    <f:loadBundle basename="ResourceBundle" var="bundle"/>
    <h:form id="addNewBannerForm">
        <div align="center">
            <div style="position:absolute;left:40%;width:384px; top:10%; height: 460px;background: #e8e7e9">
                <h2><strong>Add/edit banner</strong></h2>

                <div style="position:absolute;top: 10%;left: 10%; width: 80%; height: 80%;background: #7ccff5">
                    <br><br>
                    <h:outputText value="#{bundle.bannerId}" styleClass="labels"/>
                    <h:inputText value="#{bannerBean.bannerId}" styleClass="fields" readonly="true"/>
                    <br><br>
                    <h:outputText value="#{bundle.bannerName}" styleClass="labels"/>
                    <h:inputText value="#{bannerBean.bannerName}" styleClass="fields"/>
                    <br><br>
                    <h:outputText value="#{bundle.advertiserName}" styleClass="labels"/>
                    <h:inputText value="#{bannerBean.advertiserName}" styleClass="fields"/>
                    <br><br>
                    <h:outputText value="#{bundle.image}" styleClass="labels"/>
                    <h:commandButton value="#{bundle.browseButton}" styleClass="fields"/>
                    <br><br>
                    <h:outputText value="#{bundle.beginDate}" styleClass="labels"/>
                    <h:inputText value="#{bannerBean.beginDate}" styleClass="fields"/>
                    <br><br>
                    <h:outputText value="#{bundle.endDate}" styleClass="labels"/>
                    <h:inputText value="#{bannerBean.endDate}" styleClass="fields"/>
                    <br><br>
                    <h:outputText value="#{bundle.status}" styleClass="labels"/>
                    <h:selectOneMenu value="#{bannerBean.currentBanner}" styleClass="fields">
                        <f:selectItems value="#{bannerBean.bannerActivity}"/>
                    </h:selectOneMenu>
                    <br>
                    <h:panelGrid columns="2" width="100%">
                        <h:commandButton value="#{bundle.saveButton}" action="#{bannerBean.toBanners}"
                                         styleClass="add-content-save-cancel"/>
                        <h:commandButton value="#{bundle.cancelButton}" action="#{bannerBean.toBanners}"
                                         styleClass="add-content-save-cancel"/>
                    </h:panelGrid>
                </div>

            </div>
        </div>
    </h:form>
</f:view>
</body>

</html>